<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>发表评论</title>
</head>
<style>
    ul{
        background-color: rgb(255, 228, 233);
        width: 800px;
        height: 50px;
    }
</style>
<body>
    <div id="suggest">
        <input type="text" placeholder="输入内容" v-text="content">
        <button @cick="submit">提交</button>
        <ul v-html="lii"></ul>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var suggest=new Vue({
            el:"#suggest",
            data:{
                content:"",
                lii:""
            },
            methods:{
                submit:function(){
                    console.log(this.content);
                    
                }
            }
        })
    </script>
</body>
</html>